package com.work.rochegroupproperty.dto;

import jakarta.validation.constraints.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class UpdateTodoRequest {
    @NotBlank
    private String title;
    private String description;
    private LocalDateTime dueDate;
    @Min(1) @Max(5)
    private Integer priority;
    @Pattern(regexp = "pending|in_progress|completed|archived")
    private String status;
}